import request from '@/utils/request'

// 查询案件进展列表
export function listProgress(query) {
  return request({
    url: '/fs/progress/list',
    method: 'get',
    params: query
  })
}

// 查询案件进展详细
export function getProgress(id) {
  return request({
    url: '/fs/progress/' + id,
    method: 'get'
  })
}

// 新增案件进展
export function addProgress(data) {
  return request({
    url: '/fs/progress',
    method: 'post',
    data: data
  })
}

// 修改案件进展
export function updateProgress(data) {
  return request({
    url: '/fs/progress',
    method: 'put',
    data: data
  })
}

// 删除案件进展
export function delProgress(id) {
  return request({
    url: '/fs/progress/' + id,
    method: 'delete'
  })
}

export function getProcessByCaseAndLx(caseId, lx) {
  return request({
    url: '/fs/progress/getProcessByCaseAndLx/' + caseId + "/" + lx,
    method: 'get'
  })
}
// 删除进展文件
export function delFile(processId,name) {
  return request({
    url: '/fs/progress/file/' + processId+"/"+"/"+name,
    method: 'delete'
  })
}
